package com.ruoyi.mes.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.mes.mapper.EptMaintenanceTaskMapper;
import com.ruoyi.mes.domain.EptMaintenanceTask;
import com.ruoyi.mes.service.IEptMaintenanceTaskService;

/**
 * 设备维保任务Service业务层处理
 * 
 * @author CFL
 * @date 2024-04-28
 */
@Service
public class EptMaintenanceTaskServiceImpl implements IEptMaintenanceTaskService 
{
    @Autowired
    private EptMaintenanceTaskMapper eptMaintenanceTaskMapper;

    /**
     * 查询设备维保任务
     * 
     * @param id 设备维保任务主键
     * @return 设备维保任务
     */
    @Override
    public EptMaintenanceTask selectEptMaintenanceTaskById(Long id)
    {
        return eptMaintenanceTaskMapper.selectEptMaintenanceTaskById(id);
    }

    /**
     * 查询设备维保任务列表
     * 
     * @param eptMaintenanceTask 设备维保任务
     * @return 设备维保任务
     */
    @Override
    public List<EptMaintenanceTask> selectEptMaintenanceTaskList(EptMaintenanceTask eptMaintenanceTask)
    {
        return eptMaintenanceTaskMapper.selectEptMaintenanceTaskList(eptMaintenanceTask);
    }

    /**
     * 新增设备维保任务
     * 
     * @param eptMaintenanceTask 设备维保任务
     * @return 结果
     */
    @Override
    public int insertEptMaintenanceTask(EptMaintenanceTask eptMaintenanceTask)
    {
        return eptMaintenanceTaskMapper.insertEptMaintenanceTask(eptMaintenanceTask);
    }

    /**
     * 修改设备维保任务
     * 
     * @param eptMaintenanceTask 设备维保任务
     * @return 结果
     */
    @Override
    public int updateEptMaintenanceTask(EptMaintenanceTask eptMaintenanceTask)
    {
        return eptMaintenanceTaskMapper.updateEptMaintenanceTask(eptMaintenanceTask);
    }

    /**
     * 批量删除设备维保任务
     * 
     * @param ids 需要删除的设备维保任务主键
     * @return 结果
     */
    @Override
    public int deleteEptMaintenanceTaskByIds(Long[] ids)
    {
        return eptMaintenanceTaskMapper.deleteEptMaintenanceTaskByIds(ids);
    }

    /**
     * 删除设备维保任务信息
     * 
     * @param id 设备维保任务主键
     * @return 结果
     */
    @Override
    public int deleteEptMaintenanceTaskById(Long id)
    {
        return eptMaintenanceTaskMapper.deleteEptMaintenanceTaskById(id);
    }
}
